import request from '@/request';

export const getAds = () => {
	return request('/api/home/ads');
}
export const getSuccessCase = () => {
	return request('/api/home/success_case');
}

// 公告详情和轮播详情
export const getAdDetail = (data) => {
	return request('/api/home/ad_detail', data);
}


// 首页-寻宠寻主-列表
export const getFindList = (data) => {
	return request('/api/find/list', data);
}
// 首页-寻宠寻主-寻宠详情
export const getFindPetDetail = (data) => {
	return request('/api/find/find_pet_detail', data);
}
// 首页-寻宠寻主-寻主详情
export const getFindMasterDetail = (data) => {
	return request('/api/find/find_master_detail', data);
}

// 首页-黑名单-列表
export const getBlackList = (data) => {
	return request('/api/blacklists/list', data);
}
export const saveBlackList = (data) => {
	return request('/api/blacklists/save', data, 'post');
}
export const getBlackListDetail = (data) => {
	return request('/api/blacklists/detail', data);
}
export const getBlacklistsUserInfo = (data) => {
	return request('/api/blacklists/userinfo', data);
}


// 首页-领养列表
export const getIndexList = (data) => {
	return request('/api/adopts/index', data);
}
// 首页-领养详情
export const getAdoptsDetail = (data) => {
	return request('/api/adopts/detail', data);
}
// 领养申请
export const adoptsApply = (data) => {
	return request('/api/adopts/apply', data, 'post');
}
// 领养申请-详情
export const getAdoptsApplyDetail = (data) => {
	return request('/api/adopts/apply_detail', data);
}
// 领养申请-审核
export const applyAudit = (data) => {
	return request('/api/adopts/apply_audit', data);
}

// 发布评论
export const publishComment = (data) => {
	return request('/api/comments/publish_comment', data);
}
// 转发统计
export const transmitAdd = (data) => {
	return request('/api/comments/transmit_add', data, 'post');
}
